package com.genius.reservation.car.controller;

import com.genius.reservation.car.service.ICarInformationService;
import com.genius.reservation.common.ResponseRule;
import com.genius.reservation.driver.entity.DriverInformation;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;

import java.util.Map;

/**
 * <p>
 * 车辆信息表 前端控制器
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
@RestController
@RequestMapping("/reservation/car")
@Api(tags = "车辆控制器",value = "车辆控制器")
public class CarInformationController {

    @Autowired
    ICarInformationService carService;




    @PostMapping("/bindCar")
    @ApiOperation("驾驶员与车辆绑定")
    public ResponseRule createCar(@ApiParam("车牌号和驾驶员编号") @RequestParam Map<String,String> body){
        return carService.bindCar(body);
    }


}
